package com.song.jinpu.service.impl;

import com.song.jinpu.bean.Goods;
import com.song.jinpu.dao.GoodsDAO;
import com.song.jinpu.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService {

    @Autowired
    private GoodsDAO goodsDAO ;

    @Override
    public List<Goods> queryAllGoods() {
        return goodsDAO.querAllGoods();
    }

    @Override
    public Goods queryOneGoods(String goodsId) {
        return goodsDAO.queryOneGoods(goodsId);
    }
}
